package com.springboot.show_web.endpoint;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义端点配置类
 * Created by yaosheng on 2019/12/1.
 */
@Configuration
public class DateTimeEndpointConfig {

    @Bean
    @ConditionalOnMissingBean
    //@ConditionalOnEnabledEndpoint
    public DateTimeEndpoint dateTimeEndpoint(){
        return new DateTimeEndpoint();
    }
}